package ecode

import (
	"github.com/zhufuyi/sponge/pkg/errcode"
)

// tkMember http service level error code
// each resource name corresponds to a unique number (http type), the number range is 1~100, if there is the same number, trigger panic
var (
	tkMemberNO       = 24
	tkMemberName     = "tkMember"
	tkMemberBaseCode = errcode.HCode(tkMemberNO)

	ErrCreateTkMember      = errcode.NewError(tkMemberBaseCode+1, "failed to create "+tkMemberName)
	ErrDeleteByIDTkMember  = errcode.NewError(tkMemberBaseCode+2, "failed to delete "+tkMemberName)
	ErrDeleteByIDsTkMember = errcode.NewError(tkMemberBaseCode+3, "failed to delete by batch ids "+tkMemberName)
	ErrUpdateByIDTkMember  = errcode.NewError(tkMemberBaseCode+4, "failed to update "+tkMemberName)
	ErrGetByIDTkMember     = errcode.NewError(tkMemberBaseCode+5, "failed to get "+tkMemberName+" details")
	ErrListByIDsTkMember   = errcode.NewError(tkMemberBaseCode+6, "failed to list by batch ids "+tkMemberName)
	ErrListTkMember        = errcode.NewError(tkMemberBaseCode+7, "failed to list of "+tkMemberName)
	ErrCodeFail            = errcode.NewError(tkMemberBaseCode+8, "当前code已失效")
	// error codes are globally unique, adding 1 to the previous error code
)
